ls = ["Comprehensive", "Polytechnic", "Comprehensive", "Comprehensive", "Comprehensive",
    "Comprehensive", "Comprehensive", "Comprehensive", "Comprehensive", "Comprehensive",
    "Normal", "Polytechnic", "Comprehensive", "Polytechnic", "Comprehensive", "Comprehensive",
    "Comprehensive", "Comprehensive", "Comprehensive","Polytechnic",
    "Polytechnic", "Polytechnic", "Polytechnic", "Normal", "Comprehensive",
    "Agricultural and Forestry", "Polytechnic", "Comprehensive", "Polytechnic", "Polytechnic",
    "Polytechnic", "Comprehensive", "Polytechnic", "Comprehensive", "Comprehensive",
    "Polytechnic", "Agricultural and Forestry", "Nationalities", "Military"]
types=set(ls)
d={}
for type in types:
    d[type]=ls.count(type)
keys=sorted(d.keys())
for key in keys:
    print(f'{key} {d[key]}')
